<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "asr_flow_classify".
 *
 * @property int $flow_classify_id 话术流程的分类
 * @property string $name 话术流程的分类的命名
 * @property int $parent_id 话术流程的分类的父类
 * @property int $audio_id 所属的语音流程
 */
class AsrFlowClassify extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'asr_flow_classify';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['parent_id', 'audio_id'], 'integer'],
            [['name'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'flow_classify_id' => '流程编号',
            'name' => '名称',
            'parent_id' => '父流程',
            'audio_id' => '所属语音流程',
        ];
    }
}